/*-----------------------------------------------------------*/
/*copyright by 动力无限  www.btoe.cn*/
/*邮箱 btoe@btoe.cn*/
/*合作电话 400-0599-360*/
/*版权所有违者必究*/
/*-----------------------------------------------------------*/
$(window).scroll(function () {
        var wTop = $(window).scrollTop();
        var wH = $(window).height();
        $('.sjcTop').each(function() {
            var divTop = $(this).offset().top-(wH/2);
            var divTopW = (divTop-wTop)/10;
            $(this).css("transform","translate(0px,"+ divTopW +"px)");
        });
        $('.sjcRight').each(function() {
            var divTop = $(this).offset().top-(wH/2);
            var divTopW = (divTop-wTop)/10+20;
            $(this).css("transform","translate(" + -divTopW +"px,0px)");
        });
        $('.sjcLeft').each(function() {
            var divTop = $(this).offset().top-(wH/2);
            var divTopW = (divTop-wTop)/10;
            $(this).css("transform","translate("+ divTopW +"px,0px)");
        });
        $('.sjcBottom').each(function() {
            var divTop = $(this).offset().top-(wH/2);
            var divTopW = (divTop-wTop)/10;
            $(this).css("transform","translate(0px,"+ -divTopW +"px)");
        });

        $('.leftWow').each(function() {
            var liTop = $(this).offset().top-wH/3*2;
            var ssTop = liTop - wTop;
            if (liTop >= wTop) {
                $(this).css({'transform':"translate("+ -(ssTop)/5 +"px,0px)",'opacity': 1-ssTop/600});
            }
            else{
                $(this).css({'transform':"translate(0,0",'opacity':"1"});
            }
        });

        $('.rightWow').each(function() {
            var liTop = $(this).offset().top-wH/3*2;
            var ssTop = liTop - wTop;
            if (liTop >= wTop) {
                $(this).css({'transform':"translate("+ (ssTop)/5 +"px,0px)",'opacity': 1-ssTop/600});
            }
            else{
                $(this).css({'transform':"translate(0,0",'opacity':"1"});
            }
        });

        $('.bottomWow').each(function() {
            var liTop = $(this).offset().top-wH/3*2;
            var ssTop = liTop - wTop;
            if (liTop >= wTop) {
                $(this).css({'transform':"translate(0px,"+ (ssTop)/5 +"px)",'opacity': 1-ssTop/600});
            }
            else{
                $(this).css({'transform':"translate(0,0",'opacity':"1"});
            }
        });
    });